package com.itheima.springboot_05_mybatis.dao;

import com.itheima.springboot_05_mybatis.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper//这是干啥的
public interface BookDao {
    @Select("select * from tb_book where id=#{id}") //给方法一个sql语句
    public Book getById(Integer id);
}
